#include "NoneAcc.h"
#include "Object.h"

void mray::NoneAcc::Build(const std::vector<Collible*>& collibles){ m_collibles = collibles;	}

bool mray::NoneAcc::Hit(Ray& ray, Result* pResult /*= nullptr*/) const {
	bool ret = false;
	for(auto ptr : m_collibles)
		ret |= ptr->Hit(ray, pResult);
	return ret;
}

